package com.situ.mall.demo;

import org.junit.jupiter.api.Test;

public class DBDemo {
    @Test
    public void test44() {
        //情景1
        Integer c = 128;
        Integer d = 128;
        System.out.println(c == d);//false

        //情景2
        Integer a = 1;
        Integer b = 1;
        System.out.println(a == b);//true。 b.intValue()

        //情景3
        Integer e = new Integer(1);
        Integer f = new Integer(1);
        System.out.println(e == f);//false
    }

    public void test33() {
        //情景4
        int a = 1;
        Integer b = Integer.valueOf(1);
        Integer c = new Integer(1);

        System.out.println(a == b);//true
        System.out.println(a == c);//true
    }



}
